import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

class WebScaffoldPage extends StatefulWidget{

  final String title;
  final String url;

  const WebScaffoldPage({Key key, this.title, this.url}) : super(key: key);

  @override
  _webScaffoldPage createState() =>_webScaffoldPage();

}

class _webScaffoldPage extends State<WebScaffoldPage>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text(
          widget.title
        ),
      ),
      body: WebView(
        onWebViewCreated: (WebViewController webViewController) {
        },
        initialUrl: widget.url,
        javascriptMode: JavascriptMode.unrestricted,
      ),
    );
  }

}